﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="sys_menu_frame.aspx.cs" Inherits="Ccit.SysPlat.Purview.sys_menu_frame" %>
<html style="height:100%">
<head runat="server">
    <title></title>
    <script type="text/javascript" src="../script/jquery.js"></script>
    <script type="text/javascript">
        <!--
        function doAddNew() {
            self.frames[1].initAddNew();
        }

        function doBack() {
            var vEntryParam = $get("_hidEntryParam").value;
            eval("var msEntryParam=" + vEntryParam);
            var retListURL = msEntryParam.retListURL;
            document.location.href = retListURL;
            msEntryParam = null;
        }        
        //-->
    </script>
</head>
<body scroll="no">
    <form id="form1" runat="server">    
    <input type="hidden" id="_hidEntryParam" runat="server" />
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <table class="tbToolbar" cellpadding="0" cellspacing="0" width="100%" align="center">
        <tr>
            <td align="left">
                <div class="tbSeparator"></div>
            </td>
            <td width="100%" class="titlebar">
                菜单定义
            </td>
            <td align="right">
                <div class="tbSeparator"></div>
            </td>
            <td align="right">
                <nobr>
                    <a href="javascript:doAddNew()" class="linktext">
                        <img src="../images/toolbar/addnew.gif" border="0" />新增
                    </a>
                </nobr>
            </td>
            <td align="right" id="tdMenuBack">
                <nobr>
                    <a href="javascript:doBack()" class="linktext")>
                        <img src="../images/toolbar/back.gif" border="0" />返回
                    </a>
                </nobr>
            </td>
            <td align="right">
                <div class="tbSeparatorEnd"></div>
            </td>
        </tr>
    </table>
    <table class="tableborder" cellpadding="0" cellspacing="0" width="98%" style="height:100%" align="center">
        <tr>
            <td width="25%" valign="top">
                <iframe id="ifrmTree" name="ifrmTree" style="height:100%" width="100%" scrolling="auto"
						src="" style="BORDER-RIGHT: #000000 1px solid" marginheight="0" marginwidth="0" frameborder="0"></iframe>
            </td>
            <td width="75%">
                <iframe id="ifrmEdit" name="ifrmEdit" height="100%" width="100%" scrolling="auto"
						src="" frameborder="0"></iframe>
            </td>
        </tr>
    </table>
    </form>
    <script type="text/javascript">
    <!--
        $(document).ready(function() {
            var vEntryParam = $get("_hidEntryParam").value;
            eval("var msEntryParam=" + vEntryParam);
            var formId = msEntryParam.formId;
            var lstModeId = msEntryParam.lstModeId;
            var sourceType = msEntryParam.sourceType;

            var vTreePageParam = "sourceType=" + sourceType;
            var treeEncodeParam = base64encode(vTreePageParam);
            self.frames[0].document.location.href = "./sys_menu_tree.aspx?" + treeEncodeParam;

            var vPageParam = "formId=" + formId + "&lstModeId=" + lstModeId + "&sourceType=" + sourceType;
            var encodeParam = base64encode(vPageParam);
            self.frames[1].document.location.href = "./sys_menu_edit.aspx?" + encodeParam;

            if (sourceType == "0") {
                $get("tdMenuBack").style.display = "none";
            }
            else {
                $get("tdMenuBack").style.display = "inline";
            }
            msEntryParam = null;
        });
    //-->
    </script>
</body>
</html>
